package com.keepc.excel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.keepc.excel.domain.DataRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DataRecordMapper extends BaseMapper<DataRecord> {
    // 自定义的批量插入方法
    void insertBatch(List<DataRecord> dataRecords);

    // 分页查询
    List<DataRecord> selectDataByPage(@Param("offset") int offset,@Param("size") int size);
}
